package com.mentorgen.tools.util.profile.bundle.scheduler;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.mentorgen.tools.util.profile.bundle.BundleContainer;

public class RandomScheduler implements SchedulerIF {

	@SuppressWarnings("unchecked")
	@Override
	public List schedule(Map containerMap) {
		
		List<BundleContainer> swapplan = new ArrayList(); 
		
		int random = (int) (Math.random() * containerMap.size());
		swapplan.add((BundleContainer) containerMap.get(containerMap.keySet().toArray()[random]));
		
		return swapplan;
	}

}
